.aside-container {
  width: 100%;
  height: calc(100vh - 51px);
  overflow: auto;
  padding: 8px;
  position: relative;
  padding-bottom: 50px;

  .aside-setting {
    position: absolute;
    width: 90%;
    height: 50px;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;

    > .icon {
      width: 40px;
      height: 40px;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 4px;
      cursor: pointer;
      transition: background-color 0.3s;

      &:hover {
        background-color: var(--primaryBack);
      }

      > img {
        width: 30px;
        height: 30px;
        object-fit: cover;
      }
    }
  }
}

// 修改 element 默认样式
.aside-container-menu {
  border-right: none;

  .el-sub-menu {
    min-height: 43px;
    border-radius: 4px;
    margin-bottom: 8px;
    background-color: var(--defaultBack);
    color: var(--textGrayColor);

    // .el-menu {
    // }

    .el-menu-item {
      padding: 0 20px;
      margin-bottom: 8px;
    }
  }

  .el-menu-item {
    height: 43px;
    border-radius: 4px;
    justify-content: center;
    margin-bottom: 8px;
    background-color: var(--defaultBack);
    color: var(--textGrayColor);

    &:hover {
      background-color: var(--primaryBack);
      color: var(--textColor);
    }

    .aside-menu-item {
      height: 43px;
      line-height: 43px;
      font-size: 14px;
      vertical-align: middle;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  .el-menu-item.is-active {
    background-color: var(--default);
    color: var(--textColor);
  }
}
